Skip to content

CLN: remove shallow_copy_with_infer #33691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm except for multiindex.py looks like something weird happened?

@@ -1046,16 +1046,17 @@ def _shallow_copy(
result._cache.pop("levels", None) # GH32669
return result

def _shallow_copy_with_infer(self, values, **kwargs):
# On equal MultiIndexes the difference is empty.
def symmetric_difference(self, other, result_name=None, sort=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you really rename this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

symmetric_difference is the only method for which the logic in MultiIndex._shallow_copy_with_infer was needed, so basically yes.

@jreback jreback added Clean Index Related to the Index class or subclasses labels Apr 21, 2020
@jreback jreback added this to the 1.1 milestone Apr 21, 2020
@jreback jreback merged commit 73fd8a7 into pandas-dev:master Apr 22, 2020
@jbrockmendel jbrockmendel deleted the ref-with_infer branch April 22, 2020 02:48
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Index Related to the Index class or subclasses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants